package com.itheima.xmy.Demo;

public class TicketSellThread02 {
    public static void main(String[] args) {
        TicketSell03 ts = new TicketSell03();
        Thread thread1  = new Thread(()->{ while (true) { ts.run(); }},"线程1");
        Thread thread2  = new Thread(()->{ while (true) { ts.run(); }},"线程2");
        Thread thread3  = new Thread(()->{ while (true) { ts.run(); }},"线程3");

        thread1.start();
        thread2.start();
        thread3.start();


    }
}
